package com.home.model.dto;

import java.io.Serializable;

import javax.persistence.Column;

import com.home.model.entity.District;

/**
 * 
 * @author Kevin Phan
 *
 */
public class DistrictDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public DistrictDto(District district) {
		this.name = district.getName();
		this.code = district.getCode();
		this.description = district.getDescription();
	}

	private String name;
	private String code;
	private String description;
	private CityDto cityDto;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public CityDto getCityDto() {
		return cityDto;
	}

	public void setCityDto(CityDto cityDto) {
		this.cityDto = cityDto;
	}

}
